package com.isp.common.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 滑动结果
 *
 * @author linsy
 * @version 1.0
 * @created 2024/11/8 14:47
 */
public class SlippageResult<T> {

    @JsonProperty("next_id")
    private String nextId;
    @JsonProperty("content")
    private List<T> content;

    public SlippageResult(String nextId, List<T> content) {
        this.nextId = nextId;
        this.content = content;
    }

    public static <T> SlippageResult<T> build(String nextId, List<T> content) {
        return new SlippageResult<>(nextId, content);
    }

    public String getNextId() {
        return nextId;
    }

    public void setNextId(String nextId) {
        this.nextId = nextId;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }
}